﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestScript : MonoBehaviour
{

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.A))
        {
            PositionData data = new PositionData();
            data.x = new PositionBase();
            data.y = new PositionBase();
            data.z = new PositionBase();

            data.x.LightYearValue = 1;
            data.y.LightYearValue = 2;
            data.z.LightYearValue = 3;

            MapFactory.GetMapData(data);
        }

        if (Input.GetKeyDown(KeyCode.B))
        {
            PositionData data = new PositionData();
            data.x = new PositionBase();
            data.y = new PositionBase();
            data.z = new PositionBase();

            data.x.LightYearValue = 6;
            data.y.LightYearValue = 5;
            data.z.LightYearValue = 2;

            MapFactory.GetMapData(data);
        }
        if (Input.GetKeyDown(KeyCode.C))
        {
            PositionData data = new PositionData();
            data.x = new PositionBase();
            data.y = new PositionBase();
            data.z = new PositionBase();

            data.x.LightYearValue = 105;
            data.y.LightYearValue = 111;
            data.z.LightYearValue = 222;

            MapFactory.GetMapData(data);
        }

        if (Input.GetKeyDown(KeyCode.D))
        {
            PositionData data = new PositionData();
            data.x = new PositionBase();
            data.y = new PositionBase();
            data.z = new PositionBase();

            data.x.LightYearValue = 8;
            data.y.LightYearValue = 9;
            data.z.LightYearValue = 1;

            MapFactory.GetMapData(data);
        }
    }
}
